'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.resources('csrf', '/csrf', controller.csrf);
  router.resources('files', '/files', controller.files);
  router.post('/folders', controller.files.createFolder);
};
